package cn.edu.zust.se.api.entity;

import cn.edu.zust.se.api.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * (TFolder)实体类
 *
 * @author makejava
 * @since 2023-12-12 16:50:12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_folder")
public class Folder extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 274473411685324871L;
    /**
     * 文件夹id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 上级文件夹id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;
    /**
     * 文件夹树节点
     */
    private String treeNode;
    /**
     * 文件夹名称
     */
    private String name;
    /**
     * 是否删除
     */
    private Integer delFlag;



}

